{extends file="./main.tpl"}
{block name=head}
{/block}
{block name=body}
{if $dataFound == 1}
	<form name="cashMemo" action="{$smarty.server.PHP_SELF}" method="post">
<<<<<<< .mine
	<input type="hidden" name="hiddenId" id="hiddenId" value="{$loadingInvoiceDetailId}">
=======
	<input type="" name="hiddenId" id="hiddenId" value="{$loadingInvoiceDetailId}">
>>>>>>> .r11
	<table align="center" border="2" cellpadding="2" cellspacing="2" width="" >
	<tr>
	  <td align="center" class="table1" colspan="7"><b>{$branchCompany}</b></td>
	</tr>
	<tr>
	  <td class="table2" align="right">Consigner :</td>
	  <td class="table2" align="left"><input type="text" name="consignor" value="{$consignor}" autofocus="autofocus" /></td>
	  <td class="table2" align="right">Cash Memo No. :</td>
	  <td class="table2" colspan="3"><input type="text" name="cashmemono" REQUIRED /></td>
	  
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">Consignee :</td>
	  <td class="table2"><input type="text" name="consignee" value="{$consignee}" ></td>
	  <td class="table2" align="right" colspan="">Date :</td>
	  <td class="table2" colspan="3">{html_select_date prefix="expDate" start_year ="-0" end_year="+2" field_order="DMY" month_format="%m" day_value_format="%02d"}</td>
	</tr>
	
	<tr>
	  <td class="table2" align="right">Lorry Freight :</td>
	  <td class="table2" align="left"><input type="text" name="lorryfreight" value="{$lorryFreight}" /></td>
	  <td class="table2" align="right">Octroi No.:</td>
	  <td class="table2" colspan="3"><input type="text" name="octroiNo" value="{$octroiNo}"></td>
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">Octroi :</td>
	  <td class="table2"><input type="text" name="octroi" value="{$octroi}"></td>
	  <td class="table2" align="right" colspan="">G. C. Note No. :</td>
	  <td class="table2"><input type="text" name="gcnoteno" ></td>
	  <td class="table2" align="right" colspan="">Description :</td>
	  <td class="table2"><textarea id="" name="description" >{$discription}</textarea></td>
	</tr>
	<tr>
	  <td class="table2" align="right">Service Charges :</td>
	  <td class="table2" align="left" colspan="6"><input type="text" name="servicechargest" /></td>
	  
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">Form Charges :</td>
	  <td class="table2"><input type="text" name="formcharges"></td>
	  <td class="table2" align="right" colspan="">Form : </td>
	  <td class="table2" align="left" colspan=""> {$masterRow.fromId}</td>
	  <td class="table2" align="right">To : </td>
	  <td class="table2" align="left">{$masterToRow.toId}</td>
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">Hamali :</td>
	  <td class="table2" colspan="5"><input type="text" name="hamali" ></td>  
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">I. C. Charges :</td>
	  <td class="table2" colspan="5"><input type="text" name="iccharges" ></td>
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">Demmurage :</td>
	  <td class="table2" colspan="5"><input type="text" name="demmurage" ></td> 
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">Total :</td>
	  <td class="table2" colspan="5"><input type="text" name="total" ></td>
	  </tr>
	<tr>
		<td class="table2" align="right" colspan="">S. T. @ % :</td>
	  <td class="table2" colspan="5"><input type="text" name="st" ></td>    
	</tr>
	<tr>
		<td class="table2" align="right" colspan="">Grand Total :</td>
	  <td class="table2"><input type="text" name="grandtotal" ></td>
	  <td class="table2" align="right" colspan="">Received From M/s :</td>
	  <td class="table2" colspan="3"><textarea id="" name="receivedfromMS" ></textarea></td>
	</tr>
	<tr>
		<td class="table2" align="right" colspan="3">Amount :</td>
	  <td class="table2" colspan="3"><input type="text" name="cashMemoAmount" value="{$cashMemoAmount}" ></td>
	</tr>
	<tr>
	  <td class="table1" align="center" colspan="7"><input type="submit" name="updateBtn" value="Submit" class="button" /></td>
	</tr>
	</table>
	</form>
{else}
	<table align="center" border="2" cellpadding="2" cellspacing="2" width="" >
	<tr>
	  <th class="table1" align="right">Record Not Found !</th>
	</tr>
	</table>
{/if}
{/block}